#pragma once

namespace JHCPP
{
	namespace thread
	{
		template <class T>
		class TActiveStarter
		{
		public:
			static void start(T* pOwner, CActiveRunnableBase::Ptr pRunnable)
			{
				CThreadPool::defaultPool().start(*pRunnable);
				pRunnable->add();
			}
		};
	}//end of namespace thread
}//end of namespace JHCPP
